﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/NoRightAd.Master" AutoEventWireup="true" 
    CodeBehind="ForSaleAdDetail.aspx.cs" Inherits="Foothill.Web.ForSaleAdDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="ad-detail.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <div id="ad-details">
        
        <div id="ad-detail-div">
            <div id="div-vehicle-title"> 
                <asp:Label ID="lblVehicleType" runat="server" CssClass="ad-vehicle-title" />  
                <asp:Label ID="lblPrice" runat="server" CssClass="vehicle-price" />  
            </div>
        
            <div id="ad-info">
                <table id="tbl-ad-detail">
                    <tr>
                        <td class="td-label">
                            <asp:Label ID="lblCondition" runat="server" Text="车况:" />
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblConditionValue" runat="server" />
                        </td>  
                        <td class="td-label">
                            <asp:Label ID="lblTransmission" runat="server" Text="传动:" />
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblTransmissionValue" runat="server"  />                              
                        </td> 
                    </tr>
                    <tr>
                        <td class="td-label">
                            <asp:Label ID="lblListingType" runat="server" Text="卖家:" />    
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblListingTypeValue" runat="server" /> 
                        </td> 
                        <td class="td-label">
                            <asp:Label ID="lblDatePosted" runat="server" Text="发布时间:" />    
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblDatePostedValue" runat="server" />
                        </td>    
                    </tr>              
                    <tr>
                        <td class="td-label">
                            <asp:Label ID="lblNumClicks" runat="server" Text="察看:" />    
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblNumClicksValue" runat="server" />   
                        </td>   
                        <td class="td-label">   
                            <asp:Label ID="lblNumSaved" runat="server" Text="收藏:" />  
                        </td>
                        <td class="td-content">
                            <asp:Label ID="lblNumSavedValue" runat="server" />  
                        </td>     
                    </tr>
                </table>
           
                <div id="ad-description">
                    <asp:Label ID="lblDescriptionDetail" runat="server" />
                </div>
            </div>    
        
            <div id="ad-photos">
                <asp:UpdatePanel ID="udp1" runat="server">
                    <ContentTemplate>
                        <div id="profile-photo">
                            <asp:HyperLink ID="hlkProfilePhoto" runat="server" Target="_blank">
                                <asp:Image ID="imgProfile" runat="server" CssClass="profile-img" />
                            </asp:HyperLink>
                        </div>
                        <div id="photo-list">
                            <asp:DataList id="dltPhotos" runat="server" RepeatColumns="8" RepeatDirection="Horizontal"
                                OnItemCreated="dltPhotos_OnItemCreated" CssClass="preview-ad-dltPhotos" DataKeyField="PathOnServer" >
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnThumbnail" runat="server" CssClass="detail-img-thumbnail" OnClick="btnThumbnail_Click" />
                                </ItemTemplate>
                                <FooterTemplate></FooterTemplate>    
                            </asp:DataList>      
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>

        <div id="post-user-info">
            <asp:Panel ID="pnlUnregisteredUser" runat="server">
                <table class="tbl-user-info">
                    <tr>
                        <td>联系人:</td>
                        <td><asp:Label ID="lblAnonymousContact" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>电话:</td>
                        <td><asp:Label ID="lblAnonymousPhone" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>Email:</td>
                        <td><asp:Label ID="lblAnonymousEmail" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>城市:</td>
                        <td><asp:Label ID="lblAnonymousCity" runat="server" /></td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlRegisteredUser" runat="server">
                <table class="tbl-user-info">
                    <tr>
                        <td colspan="2">
                            <asp:Image ID="imgUserProfile" runat="server" CssClass="imgUserProfile" />   
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Image ID="imgUserLogo" runat="server" CssClass="imgLogo" />   
                        </td>
                    </tr>

                    <tr>
                        <td class="td-label">联系人:</td>
                        <td><asp:Label ID="lblRegisteredContact" runat="server" /></td>
                    </tr>
                    <tr>
                        <td class="td-label">电话:</td>
                        <td><asp:Label ID="lblRegisteredPhone" runat="server" /></td>
                    </tr>
                    <tr>
                        <td class="td-label">Email:</td>
                        <td><asp:Label ID="lblRegisteredEmail" runat="server" /></td>
                    </tr>
                    <tr>
                        <td class="td-label">城市:</td>
                        <td><asp:Label ID="lblRegisteredCity" runat="server" /></td>
                    </tr>
                </table>
            </asp:Panel>
        </div>

        <div class="clear"></div>
        
    </div>
    
</asp:Content>
